package plugin;

/**
 * Interface of plugins
 * @author zem
 */
public interface PluginInterface {
  
    public boolean Crashed();
    /**
     * Get error which lead to crash
     * @return crash error
     */
    public String CrashError();
    /**
     * Start plugin
     */
    public void Start();
    /**
     * Stop plugin
     */
    public void Stop();

    /**Check if need to input connection number
     *
     * @return true if need
     */
    public boolean NeadConnection();

    /**
     * Input Connection number
     * @param number
     */
    public void InputConnectionNumber(int number);

     /**Check if need to input user name who made connection
     *
     * @return true if need
     */
    public boolean NeadUserName();

    /**
     * Input User name
     * @param user_name - name of user from whoes name connection was made
     */
    public void InputUserName(String user_name);

}
